package com.itshidu.jiaowu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itshidu.jiaowu.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XiaZengming123
 * @since 2019-07-08
 */
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    @Select("select username from user where id=#{Hid}")
    String SelectNameById(Long Hid);

}
